package com.ln.dm1104.demo02;

import java.util.function.Function;

/**
 * @author Ln
 * @version 终极版
 * @date 2022/11/4 15:57
 */
public class Test03 {
    public static void main(String[] args) {
//        Function<String,Integer> function=(t)->t.length();
        Function<String,Integer> function=String::length;
        Integer apply = function.apply("love you");
        System.out.println(apply);
    }
}
